<?php $this->renderPartial('//common/header'); ?>
<div id="main">
<div class="container">
	<ul class="breadcrumb">
		<li><a href="<?php echo PIUrl::createUrl('/home/');?>"><?php echo translate("Trang chủ"); ?></a></li>
		<li><a href="<?php echo PIUrl::createUrl('/home/theme');?>"><?php echo translate("Giao diện"); ?></a></li>
		<?php if(!empty($cate)){ ?>
			<li><a href="<?php echo PIUrl::createUrl('/home/theme', array("alias"=>$cate->alias,));?>"><?php echo $cate->name; ?></a></li>
			<li><span><?php echo (!empty($theme)) ? $theme->name : ''; ?></span></li>
		<?php } ?>
	</ul>
	<?php if(!empty($theme)){ ?>
	<h2 class="title-lg"><?php echo (!empty($theme)) ? $theme->name : ''; ?>	</h2>
	<div class="main-content">
		<div class="item-preview">
			<a href="#" class="item-preview-img"><img src="<?php echo getImage($theme->imageDetail, 638, 300); ?>" alt="img" width="638" height="300"></a>
			<div class="item-preview-wrap-btn">
				<a href="<?php echo PIUrl::createUrl('/home/viewDemo', array("alias"=> $theme->alias));?>" class="btn-dark">Xem trang demo</a>
				<a href="<?php echo PIUrl::createUrl('/home/imageDetail', array("alias"=> $theme->alias));?>" class="btn-dark">Hình ảnh</a>
			</div>
		</div>
		<div class="item-description">
			<p><?php echo $theme->content; ?></p>
		</div>
	</div>
	<div class="sidebar">
		<p class="note-reg-buy">Bạn phải <a href="#">đăng ký</a> để mua giao diện này</p>
		<!-- ACCORDION -->
		<div class="accordion">
			<div class="heading active">
				<div class="wrap-dis-tab">
					<h4 class="title">Mua trộn bộ</h4>
					<span class="wrap-icon"><i class="icon-ib icon-closed"></i></span>
				</div>
			</div>
			<div class="content">
				<div class="inner">
					<p class="description">This is Photoshop's version  of Lorem Ipsum. Proin gravida nibh vel velit auctor aliquet.</p>
					<div class="wrap-dis-tab">
						<span class="price"><?php  echo (!empty($theme->price)) ? $theme->price." $" : '0 $'; ?></span>
						<span class="wrap-btn"><a href="#" class="btn-dark btn-reg-buy">Đăng ký mua</a></span>
					</div>
				</div>
			</div>
			<div class="heading">
				<div class="wrap-dis-tab">
					<h4 class="title">Mua phần mềm</h4>
					<span class="wrap-icon"><i class="icon-ib icon-closed"></i></span>
				</div>
			</div>
			<div class="content last">
				<div class="inner">
					<p class="description">This is Photoshop's version  of Lorem Ipsum. Proin gravida nibh vel velit auctor aliquet.</p>
					<div class="wrap-dis-tab">
						<span class="price"><?php  echo (!empty($theme->priceFull)) ? $theme->priceFull." $" : '0 $'; ?></span>
						<span class="wrap-btn"><a href="#" class="btn-dark btn-reg-buy">Đăng ký mua</a></span>
					</div>
				</div>
			</div>
		</div>
		<div class="stats">
			<div class="stats-buy">
				<i class="icon-ib icon-cart"></i>
				<p><span>21</span>người mua</p>
			</div>
			<div class="stats-comment">
				<i class="icon-ib icon-comment"></i>
				<p><span>92</span>bình luận</p>
			</div>
		</div>
		<div class="social-like">
			<img src="<?php echo Yii::app()->theme->baseUrl;?>/img/photo/img-21.jpg" alt="">
		</div>
		<!-- THEME KHÁC -->
		<h2 class="title">Giao diện khác</h2>
		<div class="box-list-preview other-theme">
			<?php if(!empty($themeRelated)){ ?>
			<ul>
				<?php foreach($themeRelated as $related){ ?>
					<li>
						<a href="<?php echo PIUrl::createUrl('/home/themeDetail/', array('alias'=>$related->alias));?>">
							<div class="wrap-image">
								<img src="<?php echo getImage($related->image, 306, 193); ?>" alt="img" width="223" height="165">
								<i class="icon-ib icon-view"></i>
							</div>
							<h4><?php echo $related->name; ?></h4>
						</a>
					</li>
				<?php } ?>
			</ul>
			<?php } ?>
		</div>
	</div>
	<?php }else echo translate("Không tìm thấy giao diên!"); ?>
	<div class="clearfix"></div>
</div>
</div>

<div id="push"> </div>
</div>
<?php $this->renderPartial('//common/footer'); ?>